package com.gszyxy.bigdataclass1group3.consumer.service;

import com.gszyxy.bigdataclass1group3.consumer.Params.ConsumerRequestParams;
import com.gszyxy.bigdataclass1group3.consumer.pojo.Consumer;

public interface ConsumerService {
    //注册
    //int register(String account, String passwd);
    //登录
    //Consumer login(String account, String passwd);
    //账号是否被注册过
    Consumer findByAccount(String account);

    int register(ConsumerRequestParams consumer);

    Consumer login(ConsumerRequestParams consumer);
}
